import 'package:flutter/material.dart';
import 'package:mandoby/core/app_export.dart';
import 'package:mandoby/core/utils/app_colors.dart';
import 'package:mandoby/features/specialist/presentation/pages/specialist_screen.dart';
import 'package:nb_utils/nb_utils.dart';

import 'custom_dialog.dart';

class SpecialistDropDown extends StatefulWidget {
  const SpecialistDropDown({super.key});

  @override
  // ignore: library_private_types_in_public_api
  _SpecialistDropDownState createState() => _SpecialistDropDownState();
}

class _SpecialistDropDownState extends State<SpecialistDropDown> {

  @override
  Widget build(BuildContext context) {
    return             DropdownButtonFormField(
      menuMaxHeight: 300.h,
      hint: Text("اختر التخصص",style: CustomTextStyles.font18White800.copyWith(fontWeight: FontWeight.w400),),
      isExpanded: true,
      isDense: false,
      iconEnabledColor: AppColors.whiteA700,
      dropdownColor: AppColors.primary,



      decoration: InputDecoration(
        hintText: "اختر التخصص",
        hintStyle: theme.textTheme.bodyMedium,
        contentPadding: EdgeInsets.all(15.w),
        fillColor: AppColors.primary,
        filled: true,
        border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(7.w),
          borderSide: BorderSide(color: AppColors.primary),
        ),
        enabledBorder: OutlineInputBorder(
          borderRadius: BorderRadius.circular(7.w),
          borderSide: BorderSide(color: AppColors.primary),
        ),
        focusedBorder: OutlineInputBorder(
          borderRadius: BorderRadius.circular(7.w),
          borderSide: BorderSide(color: AppColors.primary),
        ),
      ),
      items:<String>[
        'محاسبة ',
        'محاسبة 2',
        'محاسبة3 ',
        'محاسبة 4',

      ].map((e) => DropdownMenuItem(
        child: Text(e,style: CustomTextStyles.font18White800.copyWith(fontWeight: FontWeight.w400),),
        value: e,
      )) .toList() ,
      onChanged: (value) {},
    ).paddingSymmetric(horizontal: 50.w);


  }
}
